package com.yourenbang.lingyun.transaction.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author fengrui
 */
@Data
@Component
@RefreshScope
public class AcmTransactionParams {

    /** 考拉快收URL */
    @Value("${transaction.kaolakuaishou.host}")
    private String kaolakuaishouHost;

    /** 是否切换账户到凌云 */
    @Value("${cutAmountFlag}")
    private Boolean cutAmountFlag;

    /** 是否展示信用卡返佣账户 */
    @Value("${creditFlag}")
    private Boolean creditFlag;

    /** 是否展示购物积分账户 */
    @Value("${shoppingFlag}")
    private Boolean shoppingFlag;

    /** 是否展示达标奖励账户 */
    @Value("${ally.reach.flag}")
    private Boolean allyReachFlag;

    /** 是否展示分润账户 */
    @Value("${ally.profig.flag}")
    private Boolean allyProfigFlag;

    /** 是否展示兑换金账户 */
    @Value("${conversion.flag}")
    private Boolean conversionFlag;

    /** 是否盛付通验签 */
    @Value("${sft.check.sign.flag}")
    private Boolean sftCheckSignFlag = true;

    /** 是否计入历史已提现金额 */
    @Value("${history.ally.withdrawed.flag}")
    private Boolean historyAllyWithdrawedFlag;

    //======银小云开始======

    /** 是否展示信用卡返佣账户 */
    @Value("${creditFlagYxy}")
    private Boolean creditFlagYxy;

    /** 是否展示购物积分账户 */
    @Value("${shoppingFlagYxy}")
    private Boolean shoppingFlagYxy;

    /** 是否展示达标奖励账户 */
    @Value("${ally.reach.flagYxy}")
    private Boolean allyReachFlagYxy;

    /** 是否展示分润账户 */
    @Value("${ally.profig.flagYxy}")
    private Boolean allyProfigFlagYxy;

    /** 是否展示兑换金账户 */
    @Value("${conversion.flagYxy}")
    private Boolean conversionFlagYxy;
    /** 是否展示活跃度账户 */
    @Value("${sub.team.flagYxy}")
    private Boolean subTeamFlagYxy;

    /** 是否计入历史已提现金额 */
    @Value("${history.ally.withdrawed.flagYxy}")
    private Boolean historyAllyWithdrawedFlagYxy;
    //======银小云结束======


    /** mpos签购单地址 */
    @Value("${mpos.sign.image.url}")
    private String mposSignImageUrl;

    /** 请求电银接口超时时间 */
    @Value("${dianyin.request.time}")
    private int dianyinRequestTime;

    /** 分润mq开关 */
    @Value("${profit.mq.flag}")
    private Boolean profitMqFlag;

    /** 是否加淘宝积分 */
    private Boolean addTaobaoIntegralFlag = true;

    /** 数据迁移 */
    /**
     * 以下为迁移定时任务开关
     */
    @Value("${migrate.kill.account}")
    private boolean accountKillFlag;

    @Value("${migrate.kill.bill}")
    private boolean billKillFlag;

    @Value("${migrate.kill.score}")
    private boolean scoreKillFlag;

    @Value("${migrate.kill.merchant}")
    private boolean merchantKillFlag;

    @Value("${migrate.kill.pledge}")
    private boolean pledgeKillFlag;

    @Value("${migrate.kill.reach}")
    private boolean reachKillFlag;

    @Value("${migrate.kill.active}")
    private boolean activeKillFlag;

    @Value("${migrate.kill.transaction}")
    private boolean transactionKillFlag;

    @Value("${migrate.kill.transaction.index}")
    private boolean indexKillFlag;

    @Value("${migrate.kill.withdraw}")
    private boolean withdrawKillFlag;

    /**
     * 提现黑名单
     */
    @Value("${withdrawal.black.list}")
    private String withdrawalBlackList;

    /**
     * 银小云新政策日期
     */
    @Value("${yxy.new.police.begin.date.202206:2022-06-01}")
    public String yxyNewPoliceBeginDate202206;

    /**
     * 提现次日结算开关
     */
    @Value("${withdrawal.T1.flag}")
    private String withdrawalT1Flag;

    /**
     * 提现方式配置
     */
    @Value("${withdrawal.settle.config}")
    private String withdrawalSettleConfig;
    /**
     * 提现日结发放睡眠时间
     */
    @Value("${withdrawal.settle.pay.time}")
    private int withdrawalSettlePayTime;
    /**
     * 易生回调参数解密私钥
     */
    @Value("${yisheng.callback.prikey:MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCevX1QXaoaO07jWScX19jEjx1O5f0l9sP/kNDFAR0YJnITZ/W0UjS7yA0QeojuqdfB+rTibFSRs/PNXWnGzbY4Vk+ofELcxiJ0PTWPLtX2VKvpxB5buFvoxrvEmi+GPk8C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lXFk4cIe9wjqg10BAoGAID0jjJntZIZnL0Xnw4UsR8lBvBpe8e7RpE5wgKIZ31s4VM80qp47KPkgT3PJvOFRPye721zZ8nxb2Id6OUzpf/W4ZWnRW4a0V8eXam1DJ5WhEvwc+ZmzvELPXzCdzg2U6P5pKJm8XwtzORCYlv8kF94fHPAeK53HsjKK5ik0iwkCgYAjPvct+a9BohT94UzGZ6vvwG6Z6YQmt/WQud2K/zdPX1yxB+OyquiJZvgny+DMLQBaVHNrY4RN9R2FQAvkJ23bWcKcKbmT983x6U65OzHv8EfJUQCgZzSdUIYSorVdH66Utca9FlpoYIdtJzgjYBJHd7lyQd6QsT+3izCVP++pmw==}")
    private String yishengCallBackPriKey;

    /**
     * 拉卡拉回调参数解密公钥
     */
    @Value("${lakala.callback.pubkey:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCNxIGnqkw6eOPSqQO1fOzuU+N7pGwyuwABxtXCcF5UmYZ9PlLu5l69/hFiZzANXG8z3JcLn94XgBUfoRFKdW9fadX71VTQ9wfao9ByROpan8tUXM3axohV/O0papqLIY/7YkzOaG99uSkBkxHdLaIEuWwMG9AqGOY8QEy15abzZQIDAQAB}")
    private String lakalaCallBackPubKey;
}
